import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Home from '../components/Home.vue'
import MyLike from '../views/MyLike.vue'
import recentPlayed from '../views/RecentPlay.vue'
import video from '../views/video.vue'
import FM from '../views/FM.vue'
import Day from '../views/Day.vue'
import collection from '../views/collection.vue'
import search from '../views/Search.vue'
import Log from '@/views/logs/Log.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  }
  ,
  {
    path: '/',
    component: Home,
    children:[
      {
        path:'/myLike',
        component: MyLike
      },
      {
        path:'/recentPlayed',
        component: recentPlayed
      },
      {
        path:'/collection',
        component: collection
      },
      {
        path:'/day',
        component: Day
      },
      {
        path:'/FM',
        component: FM
      },
      {
        path:'/video',
        component: video
      },
      {
        path:'/search',
        component: search
      }

    
    ]
  }
  
]

const router = new VueRouter({
  routes
})

export default router
